package com.dymall.common.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("auth-service")
public interface AuthClient {
    // 根据userId生成token
    @GetMapping("/auth/{userId}")
    String generateToken(@PathVariable Long userId);
}
